package com.flyou.consumer.client;

import com.flyou.consumer.config.FeignFallbackFactory;
import com.flyou.consumer.config.FooConfiguration;
import com.flyou.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "user-service",fallbackFactory = FeignFallbackFactory.class,configuration = FooConfiguration.class)
public interface UserFeginClient {

    @GetMapping("/api/user/{id}")
     User findUserById(@PathVariable(value = "id") Long id);
}
